#include <iostream>



int main(){


    // 左移
    std::cout << "++++++++左移++++++++++" << std::endl;

    std::cout << "1左移1位: " << (1 << 1) << std::endl;
    std::cout << "1左移2位: " << (1 << 2) << std::endl;
    std::cout << "1左移3位: " << (1 << 3) << std::endl;

    std::cout << "======================" << std::endl;
    std::cout << "-1左移1位: " << (-1 << 1) << std::endl;
    std::cout << "-1左移2位: " << (-1 << 2) << std::endl;
    std::cout << "-1左移3位: " << (-1 << 3) << std::endl;

    // 右移
    std::cout << "++++++++右移++++++++++" << std::endl;
    std::cout << "100右移1位: " << (100 >> 1) << std::endl;
    std::cout << "100右移2位: " << (100 >> 2) << std::endl;
    std::cout << "100右移3位: " << (100 >> 3) << std::endl;

    std::cout << "======================" << std::endl;
    std::cout << "-100右移1位: " << (-100 >> 1) << std::endl;
    std::cout << "-100右移2位: " << (-100 >> 2) << std::endl;
    std::cout << "-100右移3位: " << (-100 >> 3) << std::endl;



    return 0;
}